package com.device_manager.controller;

import com.device_manager.dto.ReturnRecordDTO;
import com.device_manager.result.Result;
import com.device_manager.service.ReturnService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@RestController
@RequestMapping("/api")
@Slf4j
@Tag(name="设备退货处理")
public class ReturnController {
    @Autowired
    private ReturnService returnPersonService;
    @Operation(summary = "退货接口")
    @PostMapping()
    public Result addReturn(@RequestBody ReturnRecordDTO returnRecordDTO){
        return  returnPersonService.addReturn(returnRecordDTO);
    }
}
